<template>
    <div @click="store.setTheme()" class="action_icon">
        <IconMoon v-if="store.theme"></IconMoon>
        <IconSun v-else></IconSun>
    </div>
</template>

<script setup lang="ts">
import { IconSun, IconMoon } from "@arco-design/web-vue/es/icon";
import  { useStore } from "@/stores";

const store = useStore()
store.loadTheme()

</script>